import { GlobalStyle } from './style';
// 手册中的图标库
// import { IconStyle } from './assets/iconfont/iconfont';
// 我自己的图标库
import { IconStyleMy } from './assets/iconfontMy/iconfontMy';
import { renderRoutes } from 'react-router-config';
import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import routes from './routes/routes';
import store from './store/store';

function App() {
  return (
    <Provider store={store} >
      <BrowserRouter>
        <GlobalStyle></GlobalStyle>
        <IconStyleMy></IconStyleMy>
        { renderRoutes (routes) }
      </BrowserRouter>
    </Provider>
  );
}

export default App;
